package  src
{
	/**
	 * ...
	 * @author ...
	 */
	public class Mission 
	{
		public var name : String;
		public var checkpoint : Checkpoint;
		public var checkpointList : Array;
		
		public function Mission() 
		{
			
		}
		
		public function init():void
		{
			name = "TESTE";
			typeMission();
		}
		
		private function typeMission():void
		{
			switch(name)
			{
				case "TESTE":
					checkpointList = new Array();
					for (var i : int = 0; i < 7; i++)
					{
						checkpoint = new Checkpoint();
						Main._instance.game.level.addChild(checkpoint);
						checkpoint.visible = false;
						//checkpoint.alpha = 0.4;
						checkpointList.push(checkpoint);
					}
					
					checkpointList[0].x = 2800;
					checkpointList[0].y = 3599;
					
					checkpointList[1].x = 2799;
					checkpointList[1].y = 3242;
					
					checkpointList[2].x = 2910;
					checkpointList[2].y = 2840;
					
					checkpointList[3].x = 3137;
					checkpointList[3].y = 3160;
					
					checkpointList[4].x = 2799;
					checkpointList[4].y = 3242;
					
					checkpointList[5].x = 2254;
					checkpointList[5].y = 3261;
					
					checkpointList[6].x = 2284;
					checkpointList[6].y = 3703;
					//checkpointList[0].visible = true;
			}
		}
	}

}